<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsps/common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>登录账户</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href='<c:url value="/css/application.css"/>'>
	<link rel="stylesheet" type="text/css" href='<c:url value="/css/list.css"/>'>
	<link rel="stylesheet" type="text/css" href='<c:url value="/css/form.css"/>'>

	<script type="text/javascript">
		function validateFrm(){
			with(document.forms[0]){
				if(account_pwd.value == ''){
					alert("请输入密码！");
					account_pwd.focus();
					return false;
				}
				if(account_pwd.value.length !=6){
					alert("请输入6位密码！");
					account_pwd.focus();
					return false;
				}
			}
			return true;
		}
		
		function back(){
			location.href = 'fundMgr?act=show';
		}	
	</script>
<style type="text/css">
	body {
			background:url(pics/bg.jpg);
			-webkit-background-size: cover;
			-moz-background-size: cover;
			background-size: cover;
		}
</style>
</head>

<body>
	<div id="wrapper">
		<div id="f_title">登录账户</div>
		<form action="<c:url value="/fundMgr?act=loginToBuy"/>" method="post" onSubmit="return validateFrm();">
			<input type = "hidden" name="fund_no" value="${fund_no}">
			<div class="f_row">
				<span>账户编号：</span><input type = "text" name = "account_no" value="${account_no}">
			</div>
			<div class="f_row">
				<span>账户密码：</span><input type="password" name="account_pwd">
			</div>
			<div class="f_row">
				<input type="submit" value="登录" style="height=25px;width=50px">&nbsp;&nbsp;&nbsp;
				<button style="height=25px;width=50px" onclick="back();">返回</button>
			</div>
		</form>
	</div>

	<c:if test="${not empty err}">
		<script type="text/javascript">
			alert('${err}');
		</script>
	</c:if>
</body>
</html>
	